<?php
$title = 'Clients';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>
<p>
    <a href="<?php echo $this->url('client', array('action' => 'add')); ?>">Add a new client</a>
</p>

<table class="table">
    <tr>
        <th>ClientId</th>
        <th>First Name</th>
        <th>Last Name</th>
        <th>Phone</th>
        <th>&nbsp;</th>
    </tr>
    <?php foreach ($clients as $client) : ?>
        <tr>
            <td><?php echo $this->escapeHtml($client->getId()); ?></td>
            <td><?php echo $this->escapeHtml($client->getFirstName()); ?></td>
            <td><?php echo $this->escapeHtml($client->getLastName()); ?></td>
            <td><?php echo $this->escapeHtml($client->getPhone()); ?></td>
            <td>
                <a href="<?php echo $this->url('client', array('action' => 'edit', 'id' => $client->getId()));
    ?>">Edit</a>
                <a href="<?php echo $this->url('client', array('action' => 'delete', 'id' => $client->getId()));
    ?>">Delete</a>
            </td>
        </tr>
    <?php endforeach; ?>
</table>